import { createRouter, createWebHashHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";
import SearchView from "../views/SearchView.vue";

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            home: 'home',
            component: HomeView,
        },
        {
            path: '/search/:city',
            home: 'search',
            component: SearchView,
        }
    ]
})

export default router

